]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Fix return value for _onScroll
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Sep 2013 11:54:53 +0000 (13:54 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Sep 2013 21:52:19 +0000 (23:52 +0200)
ClutterActor::scroll-event has a boolean return value to indicate
whether the event has been handled, or event emission should continue.
Now that we are using an StScrollView, we depend on this to avoid
propagating the event to the view's own handler.

https://bugzilla.gnome.org/show_bug.cgi?id=707409

js/ui/appDisplay.js

index 70b63efe009724f9304c4b8d74dc55f4d0f7cf74..ece06a56d39a6b8ab1f8cf5da0d3f7d9eee68193 100644 (file)
@@ -401,8 +401,8 @@ const AllView = new Lang.Class({
     },
 
     _onScroll: function(actor, event) {
-         if(this._displayingPopup)
-            return;
+        if (this._displayingPopup)
+            return true;
         let direction = event.get_scroll_direction();
         if (direction == Clutter.ScrollDirection.UP) {
             if (this._currentPage > 0)
@@ -413,6 +413,7 @@ const AllView = new Lang.Class({
                     this.goToPage(this._currentPage + 1);
             }
         }
+        return true;
     },
 
     _onPan: function(action) {